import { formatTime } from '@/utils'
import i18n from '@/locales/index'
const { t } = i18n.global

export const columns = [
  { title: t('report.productDate'), dataIndex: 'processDate', key: 'processDate', align: 'center', width: 120, sorter: true,resizable: true, timeType: 'day',
    customRender: ({ text }) => {
      return formatTime(text, 'YYYY-MM-DD')
    }
  },
  { title: t('deviceManage.waterLineNo'), dataIndex: 'lineNo', key: 'lineNo', align: 'center', width: 120 , sorter: true,resizable: true },
  { title: t('basicData.jobNo'), dataIndex: 'staffNo', key: 'staffNo', align: 'center', width: 120 , sorter: true,resizable: true },
  { title: t('basicData.name'), dataIndex: 'staffName', key: 'staffName', align: 'center', width: 120 , sorter: true,resizable: true },
  { title: t('basicData.styleNo'), dataIndex: 'styleNo', key: 'styleNo', align: 'center', width: 120 ,resizable: true },
  { title: t('basicData.styleNa'), dataIndex: 'name', key: 'name', align: 'center', width: 120 , sorter: true,resizable: true },
  { title: t('hangManage.makeNo'), dataIndex: 'moNo', key: 'moNo', align: 'center', width: 120,resizable: true },
  { title: t('basicData.color'), dataIndex: 'color', key: 'color', align: 'center', width: 120 , sorter: true,resizable: true },
  { title: t('basicData.size'), dataIndex: 'size', key: 'size', align: 'center', width: 120 , sorter: true,resizable: true },
  { title: t('hangManage.poNo'), dataIndex: 'poNo', key: 'poNo', align: 'center', width: 120 , sorter: true,resizable: true },
  { title: t('hangManage.bedNo'), dataIndex: 'lot', key: 'lot', align: 'center', width: 120 , sorter: true,resizable: true },
  { title: t('hangManage.cutNo'), dataIndex: 'cutNo', key: 'cutNo', align: 'center', width: 120 , sorter: true,resizable: true },
  { title: t('basicData.processNo'), dataIndex: 'processNo', key: 'processNo', align: 'center', width: 120 , sorter: true,resizable: true },
  { title: t('basicData.processNames'), dataIndex: 'processName', key: 'processName', align: 'center', width: 120 , sorter: true,resizable: true },
  { title: t('report.outputNumber'), dataIndex: 'quantity', key: 'quantity', align: 'center', width: 120 , sorter: true,resizable: true },
  { title: t('hangManage.returnNumber'), dataIndex: 'reworkQuantity', key: 'reworkQuantity', align: 'center', width: 120 , sorter: true,resizable: true },
  { title: t('hangManage.returnRate'), dataIndex: 'reworkPercent', key: 'reworkPercent', align: 'center', width: 120 , sorter: true,resizable: true },
]